package com.pjnkj.thunder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 校验表
 * </p>
 *
 * @author pjnkj
 * @since 2022-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Checklist对象", description="校验表")
public class Checklist extends Model<Checklist> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "字段")
    private String field;

    @ApiModelProperty(value = "表")
    private String tablename;

    @ApiModelProperty(value = "是否是整数")
    private Integer integers;

    @ApiModelProperty(value = "是否是小数")
    private Integer decimals;

    @ApiModelProperty(value = "是否是是否")
    private Integer whether;

    @ApiModelProperty(value = "是否是非空")
    private Integer nonempty;

    @ApiModelProperty(value = "是否是整小于多少字")
    private Integer less;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
